import request from '@/utils/request'

//请求页面数据 /manage/contentCategory/getList get 
export const reqGetList =()=>{
    return request ({
        url:'/manage/contentCategory/getList',
        method:'get'
    })
}
//获取模板数据 manage/template/getMyTemplateList get 
export const reqMyTemplateList =()=>{
    return request ({
        url:'manage/template/getMyTemplateList',
        method:'get'
    })
}
//添加接口 /manage/contentCategory/addOne post  /manage/contentCategory/addOne
export const reqAddOne =(data)=>{
    return request ({
        url:'/manage/contentCategory/addOne',
        method:'post',
        data
    })
}
//修改节点  /manage/contentCategory/getOne get 
export const reqFixOne =(params)=>{
    return request ({
        url:'/manage/contentCategory/getOne',
        method:'get',
        params
    })
}
//移除节点 /manage/contentCategory/deleteCategory get /manage/contentCategory/deleteCategory
export const reqRemoveOne =(params)=>{
    return request ({
        url:'/manage/contentCategory/deleteCategory',
        method:'get',
        params
    })
}

//更新 /manage/contentCategory/updateOne  pOST 
export const reqUpdateNode =(data)=>{
    return request ({
        url:'/manage/contentCategory/updateOne',
        method:'post',
        data
    })
}